<template>
	<view class="bg_fff">
		<u--form labelPosition="left" labelWidth="160rpx" :labelStyle="{
		paddingLeft:'20rpx',
		color: '#333333'
		}">
			<u-form-item label="关键词" prop="subData.keyword">
				<u--input v-model="subData.keyword" border="none" placeholder="请输入关键词"></u--input>
			</u-form-item>
			<u-form-item label="内容链接" prop="subData.url">
				<u--input v-model="subData.url" border="none" placeholder="请输入内容链接"></u--input>
			</u-form-item>
		</u--form>
	</view>
</template>

<script>
	export default {
		name: "edit-zhihu-keyword",
		props: {
			data: {
				type: Object,
				default: null
			}
		},
		data() {
			return {
				subData: {
					keyword: "",
					url: ""
				}
			};
		},
		methods: {
			setData(data) {
				this.subData = {
					keyword: data.keyword,
					url: data.url
				}
			},
			getEditData() {
				return this.subData;
			}
		}
	}
</script>

<style>

</style>
